package cn.uin.infrastructure.dao;

import cn.uin.domain.family.model.entity.HomeFamilyListEntity;
import cn.uin.infrastructure.dao.po.HomeFamilyList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName HomeFamilyDao
 * @Description:类描述
 * @Author: Administrator
 * @CreateDate: 2025/11/11 11:44
 * @Version: 1.0
 */
@Mapper
public interface HomeFamilyListDao {

	/**
	 * 根据用户id获取当前成员信息
	 * @param userId
	 * @return
	 */
	HomeFamilyList queryByUserId(Long userId);

	/**
	 * 获取当前用户外的家庭成员
	 * @param userId
	 * @return
	 */
	List<HomeFamilyList> queryOtherFamilyList(Long userId);

	/**
	 * 新增
	 * @param homeFamilyList
	 */
	void insert(HomeFamilyList homeFamilyList);

	/**
	 * 根据用户id调整状态
	 * @param userId
	 */
	void updateAddStatusByUserId(Long userId, Integer status);

}
